/*
 * @Author: 别拿暗恋当饭吃. 13466071+lililkli@user.noreply.gitee.com
 * @Date: 2024-07-08 08:44:12
 * @LastEditors: 别拿暗恋当饭吃. 13466071+lililkli@user.noreply.gitee.com
 * @LastEditTime: 2024-07-11 11:56:24
 * @FilePath: \doctor\src\pages\Consultationinformation\Listofinformation\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { useEffect } from "react";
import { useNavigate } from "react-router-dom";
import { NavBar, Space, Toast } from 'antd-mobile'
import { useDispatch, useSelector } from 'react-redux'
import { dointerviewchathistory, InterviewchathistoryServer } from 'store/Consultationinformation/Interviewchathistory'

import './style.scss'
const Index = () => {
    const navigate = useNavigate()
    const dispatch = useDispatch<any>()
    const back = () =>{
        navigate(-1)
    }
    const chat = useSelector(InterviewchathistoryServer)
    console.log(chat);

    useEffect(() => {
        const data = {
            recordId: 1, page: 1, count: 5
        }
        dispatch(dointerviewchathistory(data))
    }, [])
    return (
        <div className="interviewchathistory">
            <NavBar onBack={back} style={{ borderBottom: '0.05rem solid #999' }}>唐嫣</NavBar>
            <div className="interviewchathistory-con">
                <ul>
                    <li>
                        <img src="https://tse3-mm.cn.bing.net/th/id/OIP-C.L2fXJA1chMosOk9gCrVXywHaKY?w=199&h=278&c=7&r=0&o=5&pid=1.7" alt="" />
                        <p>大大</p>
                    </li>
                </ul>
            </div>

        </div>
    )
}

export default Index